package com.unitedvision.persistence.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.unitedvision.persistence.domain.CustomerEntity;
import com.unitedvision.persistence.domain.CustomerTypeEntity;

public interface CustomerRepository extends JpaRepository<CustomerEntity, Integer> {
	List<CustomerEntity> findByNameContaining(String name);
	CustomerEntity findByName(String name);
	List<CustomerEntity> findByType(CustomerTypeEntity type);
}
